﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace FunDraw.usercontrols
{
    /// <summary>
    /// 坐标轴类
    /// </summary>
    public class Axis
    {
        /// <summary>
        /// 最大的刻度
        /// </summary>
        public int Max { get; set; }
        /// <summary>
        /// 最小的刻度
        /// </summary>
        public string AxisName { get; set; }
        /// <summary>
        /// 坐标线宽
        /// </summary>
        public int LineWidth { get; set; }

        /// <summary>
        /// 坐标线的颜色
        /// </summary>
        public Color LineColor { get; set; }

        /// <summary>
        /// 坐标轴类构造函数
        /// </summary>
        public Axis()
        {
            Max = 0;
            AxisName = "";
        }
        
        /// <summary>
        /// 坐标轴类的构造函数   
        /// </summary>
        /// <param name="axisName">坐标轴名称</param>
        /// <param name="max">坐标轴的最大刻度</param>
        public Axis(string axisName,int max=0,int linewidth=2)
        {
            Max = max;
            AxisName = axisName;
            LineWidth = 2;
        }

    }
}
